﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MallDiscount.Data
{
    public class DiscountInfo
    {
        [Key]
        public int Id { get; set; }
        [Required]
        public string Title { get; set; }//打折信息标题
        [Required]
        public string DiscountContent { get; set; }//打折信息内容
        [Required]
        public Shop InShop { get; set; }//打折信息所属的店铺
        [Required]
        public Mall InMall { get; set; }//打折信息所属的商场
        [Required]
        public DateTime DiscountStartTime { get; set; }//打折活动开始时间
        [Required]
        public DateTime DiscountEndTime { get; set; }//打折活动结束时间
        [Required]
        public DateTime PubTime { get; set; }//打折信息发布时间
        [Required]
        public string DiscountImageSrc { get; set; }//打折信息图片文件地址
        public string Note { get; set; }
    }
}
